/**
 * Copyright (c) 2011 eelpo.com
 * All rights reserved.
 */
package com.eelpo.common.security.constant;

/**
 * 常量字符
 * 
 * @author <a href="mailto:Brian@eelpo.com">汪洪州</a>
 * @since 1.0
 */
public final class Constants {

	public static final String RSA_ECB_PKCS1PADDING = "RSA/ECB/PKCS1Padding";
	public static final String RSA_CBC_PKCS1PADDING = "RSA/CBC/PKCS5Padding";

	public static final Integer RC4_KEYSIZE = 128;

	public static final String RC4_ALGORITHM = "RC4";

	public static final String TRIPLEDES_ALGORITHM = "TripleDES";

	public static final Integer TRIPLEDES_IVLENGTH = 8;

	public static final Integer TRIPLEDES_KEYSIZE = 168;

	public static final String BLOWFISH_ALGORITHM = "Blowfish";

	public static final Integer BLOWFISH_IVLENGTH = 8;

	public static final Integer BLOWFISH_KEYSIZE = 128;

	public static final String AES_ALGORITHM = "AES";

	public static final Integer AES_IVLENGTH = 16;

	public static final Integer AES_KEYSIZE = 128;

	public static final String ECB_PKCS5PADDING = "/ECB/PKCS5Padding";

	public static final String CBC_PKCS5PADDING = "/CBC/PKCS5Padding";

	// 512-2048
	public static final Integer RSA_KEYSIZE = 1024;

	public static final String RSA_ALGORITHM = "RSA";

	public static final String DSA_ALGORITHM = "DSA";

	public static final Integer DSA_KEYSIZE = 512;

	public static final String SHA1WITHRSA = "SHA1withRSA";

	public static final String MD2WITHRSA = "MD2withRSA";

	public static final String MD5WITHRSA = "MD5withRSA";

	public static final String DES_ALGORITHM = "DES";

	public static final String DES_OFB32_PKCS5PADDING = "DES/OFB32/PKCS5Padding";

	public static final String DES_CFB8_NOPADDING = "DES/CFB8/NoPadding";

	public static final String MD5_ALGORITHM = "MD5";

	public static final String SHA_ALGORITHM = "SHA";

	public static final String SHA1_ALGORITHM = "SHA1";

	public static final String SHA_1_ALGORITHM = "SHA-1";

	public static final Integer PBE_ITERATIONS = 1000;

	public static final String PBEWITHMD5ANDDES = "PBEWithMD5AndDES";

	public static final String PBEWITHSHA1ANDDESEDE = "PBEWithSHA1AndDESede";
}
